package com.lunago.agent.controller;

import com.lunago.agent.constant.JsonResult;
import com.lunago.agent.pojo.entity.PromptRole;
import com.lunago.agent.service.InterestService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/aichat")
@Api(tags = "查询感兴趣的内容")
public class InterestController {
    @Autowired
    private InterestService interestService;
    @PostMapping("/interest")
    public JsonResult selectInterest(){
        List<PromptRole> list = interestService.selectInterest();
        return JsonResult.ok(list);
    }
}
